const schedule = require('node-schedule');

function scheduleCronstyle() {
    schedule.scheduleJob('2 * * * * *', function () {
        //每两分钟执行一次
        console.log('scheduleCronstyle:' + new Date());
    });
}

scheduleCronstyle();
